package com.leo.base;

import java.util.List;

/**
 * 分页返回
 *
 * @author liusl
 * @version 1.0
 * @date 2018/12/8 20:38
 */
public class PageResponse<T> extends ReturnResponse {

    private long count;
    private List<T> data;

    public PageResponse(int code, String desc) {
        super(code, desc);
    }

    public PageResponse(int code, String desc, long count) {
        super(code, desc);
        this.count = count;
    }

    public PageResponse(int code, String desc, long count, List<T> data) {
        super(code, desc);
        this.count = count;
        this.data = data;
    }

    public long getCount() {
        return count;
    }

    public void setCount(long count) {
        this.count = count;
    }

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }
}
